import request from "@/utils/request";

//获取照片标注详细信息
export function picMarkDetailByMarkId(markId) {
  return request({
    url: "/system/mark/" + `${markId}`,
    method: "get",
  });
}

// 图片新增标注
export function addPicMark(data) {
  return request({
    url: "/system/mark",
    method: "post",
    data: data,
  });
}
// 删除图片标注
export function delPicMark(data) {
  return request({
    url: "/system/mark/" + data,
    method: "delete",
  });
}
//获取照片详细信息
export function picDetailByPhotoId(data) {
  let url = "";
  if (data.sMarkId) {
    url =
      "/system/photo/" + `${data.photoId}/${data.kind}?sMarkId=${data.sMarkId}`;
  } else {
    url = "/system/photo/" + `${data.photoId}/${data.kind}`;
  }

  return request({
    url: url,
    method: "get",
  });
}
